import { BasicFetchResult } from '../model/baseModel';
import { defHttp } from '@/utils/http/axios';
// import { debounce } from 'lodash-es';

/**
 * 下拉通用接口 @HashKey @HashValue注解配置的缓存数据 以及需要做成下拉的数据集合
 * @author frank
 * @date 2022-09-14 16:20:59
 */
export const cacheApi = (params: Recordable) => {
  return defHttp.get<BasicFetchResult<any>>({ url: '/common/combo', params });
};

export const selectApiData = async (params: Recordable) =>
  await defHttp.get<BasicFetchResult<any>>({ url: '/common/combo', params });
